package com.domain;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class User {

    private Integer id;
    private String openid;
    private String userName;
    private byte[] avatar; //二进制数据

    public User() {}

    public User(String openid) {
        this(openid, null);
    }

    public User(String openid, String userName) {
        this(openid, userName, null);
    }

    public User(String openid, String userName, byte[] avatar) {
        this.openid = openid;
        this.userName = userName;
        this.avatar = avatar;
    }

}
